﻿using System.Collections.Generic;
using PSE.Deployment.SetupBase.Configuration;

namespace PSE.Deployment.SetupBase
{
    public class SystemComparer : IEqualityComparer<SystemInfo>
    {
        public bool Equals(SystemInfo x, SystemInfo y)
        {
            return x.Id == y.Id;
        }

        public int GetHashCode(SystemInfo obj)
        {
            return (obj.Id + obj.Version.ToString()).GetHashCode();
        }
    }
}
